<?php
// @formatter:off
/**
 * @file ct.search.updateindex.php
 * @author Alejandro Dario Simi
 * @date $Date: 2013-06-22 17:58:11 +0000 (Sat, 22 Jun 2013) $
 *
 * $Id: ct.search.updateindex.php 83 2013-06-22 17:58:11Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/tags/wcomix-1.0.0.1/cron/ct.search.updateindex.php $
 */
// @formatter:on

class WCUpdateSearchIndex extends WCCronTool {
	public function run($spacer = "") {
		global $wcSearch;
		$wcSearch->updateIndex(true, $spacer);
	}
	public function showHelp($spacer = "") {
		echo "{$spacer}This updated search index by loading all indexed items.\n\n";
		echo "{$spacer}It requires no extra parameters.\n";
	}
	protected function loadOptions() {
		$this->_optionsLoaded = true;
	}
}
?>